import 'package:json_annotation/json_annotation.dart';

part 'user_info_model.g.dart';

@JsonSerializable()
class UserInfoModel {
  final int fansCount;
  final int attentionCount;
  final String incomeAmount;
  final double predictInAmount;
  final double lastMonthIncoment;
  final String platformId;
  final String userLevelIcon;
  final String creditLevelIcon;
  final double balanceAmount;
  final String userType;
  final String avatar;
  final String nickName;
  final double creditPercent;
  final int creditLevel;
  final bool disable;
  final int balanceCoinAmount;
  final String creditValue;

  UserInfoModel({
    required this.fansCount,
    required this.attentionCount,
    required this.incomeAmount,
    required this.predictInAmount,
    required this.lastMonthIncoment,
    required this.platformId,
    required this.userLevelIcon,
    required this.creditLevelIcon,
    required this.balanceAmount,
    required this.userType,
    required this.avatar,
    required this.nickName,
    required this.creditPercent,
    required this.creditLevel,
    required this.disable,
    required this.balanceCoinAmount,
    required this.creditValue,
  });

  factory UserInfoModel.fromJson(Map<String, dynamic> json) =>
      _$UserInfoModelFromJson(json);

  Map<String, dynamic> toJson() => _$UserInfoModelToJson(this);
}